package com.shop.service;

import com.shop.dao.TestDao;
import com.shop.entity.TestJson;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.context.annotation.RequestScope;

import java.util.List;

@RestController
@RequestScope
public class TestServiceRest {
    @Autowired
    TestDao testDao;
    @RequestMapping("query")
    public List<TestJson> queryAllClassify(){
        return testDao.query();
    }
}
